import request from '@/utils/request'

// 查询客户
export function queryClient() {
    return request({
        url: '/sales/queryClient',
        method: 'get',
    })
}

// 查询合同
export function selectContractAll() {
    return request({
        url: '/sales/selectContractAll',
        method: 'get',
    })
}

// 联系情况
export function getContactInformation() {
    return request({
        url: '/sales/getContactInformation',
        method: 'get',
    })
}

// 商机查询
export function getBusinessManagement() {
    return request({
        url: '/sales/getBusinessManagement',
        method: 'get',
    })
}

// 重点客户跟进
export function getKeyCustomers() {
    return request({
        url: '/sales/getKeyCustomers',
        method: 'get',
    })
}

// 排行榜
export function rankingList() {
    return request({
        url: '/sales/rankingList',
        method: 'get',
    })
}

// 查询客户总数
export function getAllClientQuality() {
    return request({
        url: '/sales/getAllClientQuality',
        method: 'get',
    })
}

// 查询商机总数
export function getAllBusinessQuantity() {
    return request({
        url: '/sales/getAllBusinessQuantity',
        method: 'get',
    })
}

// 查询合同金额与合同数量
export function getCount() {
    return request({
        url: '/contract/getCount',
        method: 'get',
    })
}

// 新增客户
export function addClient(data) {
    return request({
        url: '/sales/addClient',
        method: 'post',
        params: data
    })
}

// 删除客户
export function deleteClient(data) {
    return request({
        url: '/sales/deleteClient',
        method: 'post',
        params: data
    })
}

// 新增采购需求
export function addPurchaseRequirements(data) {
    return request({
        url: '/sales/addPurchaseRequirements',
        method: 'post',
        params: data
    })
}